package val.to;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.util.Log;

public abstract class ValtoActivity extends Activity {
	ProgressDialog mLoadingDialog;	

	@Override
	protected void onCreate(Bundle savedInstanceState) 
	{	
		super.onCreate(savedInstanceState);
		Log.d(this.getClass().getSimpleName(), "Created");
	}
	
	@Override
	protected void onResume() {
		super.onResume();
		Log.d(this.getClass().getSimpleName(), "Resumed");
		
		if (Globals.FacebookSession == null)
			Log.i(this.getClass().getSimpleName(), "Facebook Session is null");
		else if(!Globals.FacebookSession.isSessionValid())
			Globals.FacebookSession.extendAccessTokenIfNeeded(this, null);
	}
	
	@Override
	protected void onStop() {
		super.onStop();
	}
}
